a11y: Remove unused gtk_cell_accessible_set_cell_data()
authorBenjamin Otte <otte@redhat.com>
Fri, 16 Dec 2011 02:35:59 +0000 (03:35 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 16 Dec 2011 03:53:17 +0000 (04:53 +0100)
gtk/a11y/gtkcellaccessible.c
gtk/a11y/gtkcellaccessible.h
gtk/a11y/gtkcellaccessibleparent.c
gtk/a11y/gtkcellaccessibleparent.h
gtk/a11y/gtktreeviewaccessible.c

index 3d39708ba96eb760dd28fb5d38055d407b255e60..f24b122e846a049a953eff52c4647a5c69188018 100644 (file)
@@ -359,29 +359,6 @@ atk_component_interface_init (AtkComponentIface *iface)
   iface->grab_focus = gtk_cell_accessible_grab_focus;
 }
 
-/**
- * _gtk_cell_accessible_set_cell_data:
- * @cell: a #GtkCellAccessible
- *
- * Sets the cell data to the row used by @cell. This is useful in
- * particular if you want to work with cell renderers.
- *
- * Note that this function is potentially slow, so be careful.
- **/
-void
-_gtk_cell_accessible_set_cell_data (GtkCellAccessible *cell)
-{
-  AtkObject *parent;
-
-  g_return_if_fail (GTK_IS_CELL_ACCESSIBLE (cell));
-
-  parent = gtk_widget_get_accessible (cell->widget);
-  if (parent == NULL)
-    return;
-
-  _gtk_cell_accessible_parent_set_cell_data (GTK_CELL_ACCESSIBLE_PARENT (parent), cell);
-}
-
 /**
  * _gtk_cell_accessible_get_state:
  * @cell: a #GtkCellAccessible
index 8cd9ca7493dd8ea7b4b784d32d2c83f24aa883ce..bf489d67f044cf0cea1bb6c687be9f09b5a77d86 100644 (file)
@@ -54,7 +54,6 @@ GtkCellRendererState
 void     _gtk_cell_accessible_state_changed (GtkCellAccessible *cell,
                                              GtkCellRendererState added,
                                              GtkCellRendererState removed);
-void     _gtk_cell_accessible_set_cell_data (GtkCellAccessible *cell);
 void     _gtk_cell_accessible_update_cache  (GtkCellAccessible *cell);
 
 void     _gtk_cell_accessible_initialise    (GtkCellAccessible *cell,
index 6a36c98fdec732b27e6a2157262692efef07ccd1..50869c9eeb792058e941482bb4c62bd3d578d60f 100644 (file)
@@ -129,21 +129,6 @@ _gtk_cell_accessible_parent_get_renderer_state (GtkCellAccessibleParent *parent,
     return 0;
 }
 
-void
-_gtk_cell_accessible_parent_set_cell_data (GtkCellAccessibleParent *parent,
-                                           GtkCellAccessible       *cell)
-{
-  GtkCellAccessibleParentIface *iface;
-
-  g_return_if_fail (GTK_IS_CELL_ACCESSIBLE_PARENT (parent));
-  g_return_if_fail (GTK_IS_CELL_ACCESSIBLE (cell));
-
-  iface = GTK_CELL_ACCESSIBLE_PARENT_GET_IFACE (parent);
-
-  if (iface->set_cell_data)
-    (iface->set_cell_data) (parent, cell);
-}
-
 void
 _gtk_cell_accessible_parent_expand_collapse (GtkCellAccessibleParent *parent,
                                              GtkCellAccessible       *cell)
index 3d79ac5eb86dee1a495b51bcbb502579271c19ca..1f00372bfdaebaa1db9392ed59891d25f937e3be 100644 (file)
@@ -63,8 +63,6 @@ struct _GtkCellAccessibleParentIface
   GtkCellRendererState
            ( *get_renderer_state) (GtkCellAccessibleParent *parent,
                                  GtkCellAccessible       *cell);
-  void     ( *set_cell_data)    (GtkCellAccessibleParent *parent,
-                                 GtkCellAccessible       *cell);
   /* actions */
   void     ( *expand_collapse)  (GtkCellAccessibleParent *parent,
                                  GtkCellAccessible       *cell);
@@ -93,8 +91,6 @@ int      _gtk_cell_accessible_parent_get_child_index  (GtkCellAccessibleParent *
 GtkCellRendererState
          _gtk_cell_accessible_parent_get_renderer_state(GtkCellAccessibleParent *parent,
                                                        GtkCellAccessible       *cell);
-void     _gtk_cell_accessible_parent_set_cell_data    (GtkCellAccessibleParent *parent,
-                                                       GtkCellAccessible       *cell);
 void     _gtk_cell_accessible_parent_expand_collapse  (GtkCellAccessibleParent *parent,
                                                        GtkCellAccessible       *cell);
 void     _gtk_cell_accessible_parent_activate         (GtkCellAccessibleParent *parent,
index 56ba1c4b6aeaf7f1bc8ef2f012d2683a953ab64a..06abfa04e2ecf926ab814b33f967d24cbb016862 100644 (file)
@@ -1363,15 +1363,6 @@ gtk_tree_view_accessible_get_renderer_state (GtkCellAccessibleParent *parent,
   return flags;
 }
 
-static void
-gtk_tree_view_accessible_set_cell_data (GtkCellAccessibleParent *parent,
-                                        GtkCellAccessible       *cell)
-{
-  set_cell_data (GTK_TREE_VIEW (gtk_accessible_get_widget (GTK_ACCESSIBLE (parent))),
-                 GTK_TREE_VIEW_ACCESSIBLE (parent),
-                 cell);
-}
-
 static void
 gtk_tree_view_accessible_expand_collapse (GtkCellAccessibleParent *parent,
                                           GtkCellAccessible       *cell)
@@ -1442,7 +1433,6 @@ gtk_cell_accessible_parent_interface_init (GtkCellAccessibleParentIface *iface)
   iface->grab_focus = gtk_tree_view_accessible_grab_cell_focus;
   iface->get_child_index = gtk_tree_view_accessible_get_child_index;
   iface->get_renderer_state = gtk_tree_view_accessible_get_renderer_state;
-  iface->set_cell_data = gtk_tree_view_accessible_set_cell_data;
   iface->expand_collapse = gtk_tree_view_accessible_expand_collapse;
   iface->activate = gtk_tree_view_accessible_activate;
   iface->edit = gtk_tree_view_accessible_edit;